<?php 
include("db/connect.php");
switch ($_GET["status"]){
	//case "000":
	//	$sqlinsertdep="insert into deposit(deposit_date,orders_id) values('".date("Y-m-d")."',".$_GET["orders_id"].")";
	//	mysql_query($sqlinsertdep);
	///	$sqlupdateorder="update orders set orders_status='001' where orders_id=".$_GET["orders_id"]."";
	//    mysql_query($sqlupdateorder);
	//	echo "<script> window.location='index_add_product.php' ";

//	break;
	case "001":
		$sqlinsertpay="insert into payment(payment_date,orders_id) values('".date("Y-m-d")."',".$_GET["orders_id"].")";
		mysql_query($sqlinsertpay);
		$sqlupdateorder="update orders set orders_status='011' where orders_id=".$_GET["orders_id"]."";
	    mysql_query($sqlupdateorder);
//		echo "<script> window.location='index_add_product.php' </script>";
	;
	break;
	case "011":
	;
	break;
	case "111":
	;
	break;
	}
?>